package com.softa.shiro.authc;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 *  封装登录数据
 * Created by yangl on 2017/8/6.
 */
public class CaptchaAuthenticationToken extends UsernamePasswordToken {

    /**
     * 验证码
     */
    private String captcha;
    /**
     * 用来区分前后台登录的标记
     *  0 后台管理用户 1 前台注册用户
     */
    private Integer loginType;

    public CaptchaAuthenticationToken(String username, String password, boolean rememberMe, String host, String captcha) {
        super(username, password, rememberMe, host);
        this.captcha = captcha;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public Integer getLoginType() {
        return loginType;
    }

    public void setLoginType(Integer loginType) {
        this.loginType = loginType;
    }
}
